<?php
$v = $this->getValue(); 
$v = empty($v)? array(): Soul_Util_Array::pack($v);
?>
<ul<?php echo $this->getAttributeHtml()?>>
<?php
for($i = 0; $i < $this->getCount(); $i++):
	if(count($v) > $i):
?>
<li class="image">
<a href="<?php echo $v[$i] ?>" target="_blank">
<img src="<?php echo $v[$i] ?>" 
style="<?php echo $this->getImageWidth()? 'width:'.$this->getImageWidth().'px;': ''?><?php echo $this->getImageHeight()? 'height:'.$this->getImageHeight().'px;': ''?>"/>
</a>
<div class="options">
<a href="javascript:void(0)" onclick="javascript:$(this).parent().parent().remove();$('#<?php echo $this->getId().'_'.$i?>').show()">删除</a>
</div>
<input type="hidden" name="<?php echo $this->getId().'_'.$i?>" value="<?php echo $v[$i]?>"/>
</li>
<li><input type="file" id="<?php echo $this->getId().'_'.$i?>" name="<?php echo $this->getId().'_'.$i?>"<?php echo $this->getValidateRuleHtml()?> style="display:none"/></li>
<?php else:?>
<li><input type="file" id="<?php echo $this->getId().'_'.$i?>" name="<?php echo $this->getId().'_'.$i?>"<?php echo $this->getValidateRuleHtml()?>/></li>
<?php endif;
endfor;
?>
</ul>